import app
import requests


class LoginAPI:
    def __init__(self):
        self.url_login = app.path + "/api/sys/login"

    def login(self, login_data):
        return requests.post(url=self.url_login, json=login_data)
